import { IRouterConfig } from '../types/interface';
import {login, registry, getUser} from './user/user';

//:IRouterConfig[]
const routerConfig:IRouterConfig[] = [
  {
    url: '/login',
    method: 'POST',
    callback: login
  },
  {
    url: '/registry',
    method: 'POST',
    callback: registry
  }, {
    url: '/user/:id',
    method: 'get',
    callback: getUser
  },
];

export default routerConfig;
